beginterrainscript;

variables;

short x,y,callthis;

body;

beginstate 0;
	x=my_loc_x();
	y=my_loc_y();
	callthis=get_memory_cell(0);
	set_script_mode(2);
break;

beginstate 2;
	if (party_can_see_loc(x,y)) run_town_script(callthis);	
break;